<template>
  <div>
          111111111111222
          <el-input v-model="props.son"></el-input>
          <input v-model="values">
  </div>
</template>

<script setup lang="ts">
import { defineProps,ref,watch,defineExpose } from "vue";
const props=defineProps({
  son:String
})
const values=ref('')
watch(
  ()=>props.son,
()=>{
  values.value='2'
},{
  immediate:true
})
const open=(e)=>{
  console.log(e);
  
  values.value=e
}
defineExpose({
  open
})
</script>

<style lang="less" scoped>

</style>